#ifndef FLOATDELEGATE_H
#define FLOATDELEGATE_H

#include <QStyledItemDelegate>

class FloatDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    FloatDelegate(QObject *parent = 0);
    QString displayText(const QVariant &value,
                        const QLocale &locale) const;
    QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &index) const;
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
    void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
};

#endif // FLOATDELEGATE_H
